home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / DB / UTIL72 / DBMSPEXP.SQL < prev    next >
Encoding:
Text File  |  1995-05-09  |  3.9 KB  |  97 lines

  1. rem 
  2. rem $Header: dbmspexp.sql 7020100.1 94/09/23 22:14:05 cli Generic<base> $ 
  3. rem 
  4. Rem  Copyright (c) 1992 by Oracle Corporation 
  5. Rem    NAME
  6. Rem      dbmspexp.sql - procedural extesnions to export
  7. Rem    DESCRIPTION
  8. Rem      This file defines a pl/sql package containing 
  9. Rem      functions that are called by export to dynamically link in 
  10. Rem      pl/sql logic in the export process.  These routines 
  11. Rem      interpret the expact$ table.
  12. Rem    RETURNS
  13. Rem 
  14. Rem    NOTES
  15. Rem      <other useful comments, qualifications, etc.>
  16. Rem    MODIFIED   (MM/DD/YY)
  17. Rem     dsdaniel   04/07/94 -  merge changes from branch 1.1.710.1
  18. Rem     adowning   03/29/94 -  merge changes from branch 1.1.710.2
  19. Rem     adowning   02/02/94 -  split file into public / private binary files
  20. Rem     dsdaniel   01/31/94 -  Branch_for_patch
  21. Rem     dsdaniel   01/31/94 -  Branch_for_patch
  22. Rem     dsdaniel   12/29/93 -  Creation
  23.  
  24. CREATE OR REPLACE PACKAGE DBMS_EXPORT_EXTENSION AS 
  25. ------------------------------------------------------------
  26. -- Overview
  27. --
  28. -- This package implemts PL/SQL extensions to Export as described by the
  29. -- ...
  30. ---------------------------------------------------------------------
  31. -- SECURITY
  32. -- This package is owned by SYS,  and is  granted to PUBLIC.
  33. -- The procedures dynamically called by the package are called using
  34. -- The parse_as_user option
  35. ------------------------------------------------------------------------------
  36. -- EXCEPTIONS
  37. -- 
  38.    unExecutedActions EXCEPTION;
  39. -- A function was not called with the same parameters until it returned NULL.
  40. -- This indicates an internal error in EXPORT.
  41. -- CONSTANTS
  42. -- 
  43. --   Function codes for the expact$ table.
  44. -- 
  45.   func_pre_table   CONSTANT NUMBER := 1;     /* execute before loading table */
  46.   func_post_tables CONSTANT NUMBER := 2; /* execute after loading all tables */
  47.   func_pre_row     CONSTANT NUMBER := 3;       /* execute before loading row */
  48.   func_post_row    CONSTANT NUMBER := 4;        /* execute after loading row */
  49.   func_row         CONSTANT NUMBER := 5;   /* execute in leiw of loading row */
  50. ------------------------------------------------------------------------------
  51. -- PROCEDURES AND FUNCTIONS
  52.   FUNCTION pre_table(table_schema IN VARCHAR2,
  53.                      table_name   IN VARCHAR2)
  54.     RETURN VARCHAR2;
  55. -- execute pre_table functions from the expact$ table, for a specific table
  56. -- Input Parameters:
  57. --   table_schema 
  58. --     The schema of the table being exported.
  59. --   table_name
  60. --     The name for the table beign exported.
  61. -- Result:
  62. --   A string containg a procedure invocation to be put in the export stream.
  63. --   If non-null, this procedure should be called again (immediatly) for the
  64. --   same table.  If NULL, there are no additional pre_table calls to 
  65. --   be exported to the
  66. --   stream for this table and function.
  67. -- Exceptions:
  68. --   unExecutedActions
  69. --   Any error encountered during executing of the action
  70.  
  71.   FUNCTION post_tables(table_schema IN VARCHAR2,
  72.                        table_name   IN VARCHAR2)
  73.     RETURN VARCHAR2;
  74. -- execute post_tables functions from the expact$ table, for a specific table
  75. -- Input Parameters:
  76. --   table_schema 
  77. --     The schema of the table being exported.
  78. --   table_name
  79. --     The name for the table beign exported.
  80. -- Result:
  81. --   A string containg a procedure invocation to be put in the export stream.
  82. --   If non-null, this procedure should be called again (immediatly) for the
  83. --   same table.  
  84. --  If NULL, there are no additional post_tables calls to be exported to the
  85. --   stream for this table.
  86. -- Exceptions:
  87. --   unExecutedActions
  88. --   Any error encountered during executing of the action
  89. ----------------------------------------------------------------------------
  90. -- ROW FUNCTIONS WILL BE ADDED IN THE FUTURE
  91. ----------------------------------------------------------------------------
  92. END DBMS_EXPORT_EXTENSION;
  93. /
  94.  
  95. GRANT execute ON sys.dbms_export_extension to public; 
  96.  
  97.